package ysq.xyg.base.extend.ehcache;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * ehcache启动时放入缓存
 *
 * @author taocongcong
 * @create 2019-04-11 18:08
 */
@Component
public class EhcacheInit implements ApplicationListener<ContextRefreshedEvent> {

    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        /*ehCacheService.selectSysConfigList();
        ehCacheService.hostCitySelectList();
        ehCacheService.hotHostCityList();
        ehCacheService.hostItemSelectList();
        ehCacheService.hotHostItemSelectList();*/
    }
}
